import React from 'react'
import { Button } from 'antd';
import { useDispatch } from 'react-redux';
import { fetchSignIn } from '../../../store/actions/infoApi';
import UpBigload from '../../../common/upBigload';
export default function SignIn() {
  const dispatch = useDispatch();
  const signIn = () => {
    dispatch(fetchSignIn('traffic', 'pass')).then(res => {
      console.log(res);
    })
  };


  return (
    <div>
      <Button onClick={signIn}>登录</Button>
      <UpBigload />
    </div>
  )
}
